package com.bao.demo.work.flower.controller;

import org.junit.jupiter.api.Test;

import java.util.Scanner;

/**
 * @author baoye
 * @date 2024-08-23/19:29
 */
public class SystemMessage {
    @Test
    public void flowerM (){
        while (true){
            System.out.println("=== 欢迎光临===");
            System.out.println("---1查询订单---");
            System.out.println("---2修改订单---");
            System.out.println("---3删除订单---");
            System.out.println("---4退出系统---");
            System.out.println("=== 输入操作===");
            int i=new Scanner(System.in).nextInt();
            switch(i){
                case 1:
                    FlowerController.select();
                    break;
                case 2:
                    FlowerController.update();
                    break;
                case 3:
                    FlowerController.delete();
                    break;
                default:
                    System.exit(0);
            }
        }
    }
}
